]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Don't save unacked messages
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 11 Jul 2011 14:14:36 +0000 (16:14 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 4 Aug 2011 08:53:48 +0000 (10:53 +0200)
Don't bother tracking which messages we need to ACK, just tell Telepathy to
ACK them all.

https://bugzilla.gnome.org/show_bug.cgi?id=654398

js/ui/telepathyClient.js

index 10ea5ac0b4ca00ba90948a3a5126b3d6f2b4e2c2..9c38ccec573b4c770aef9279bb8965d0caa65d01 100644 (file)
@@ -576,13 +576,10 @@ ChatSource.prototype = {
     },
 
     _ackMessages: function() {
-        if (this._pendingMessages.length == 0)
-            return;
-
         // Don't clear our messages here, tp-glib will send a
         // 'pending-message-removed' for each one.
-        this._channel.ack_messages_async(this._pendingMessages, Lang.bind(this, function(src, result) {
-            this._channel.ack_messages_finish(result);}));
+        this._channel.ack_all_pending_messages_async(Lang.bind(this, function(src, result) {
+            this._channel.ack_all_pending_messages_finish(result);}));
     },
 
     _summaryItemClicked: function(source, button) {